﻿using System.Collections.Generic;
using LinqToDB.Mapping;

namespace ggHD.Domain.BizObj
{
    [Table(Schema = "dbo", Name = "UserProfile")]
    public partial class UserProfile
    {
        [PrimaryKey, Identity]
        public int UserId { get; set; } // int
        [Column, NotNull]
        public string UserName { get; set; } // nvarchar(56)

        #region Associations

        /// <summary>
        /// fk_UserId_BackReference
        /// </summary>
        [Association(ThisKey = "UserId", OtherKey = "UserId", CanBeNull = false)]
        public IEnumerable<webpages_UsersInRole> fkUserIds { get; set; }

        /// <summary>
        /// FK__TiketsOfU__UserI__531856C7_BackReference
        /// </summary>
        [Association(ThisKey = "UserId", OtherKey = "UserId", CanBeNull = false)]
        public IEnumerable<TiketsOfUser> TiketsOfUUserI531856C7 { get; set; }

        #endregion
    }
}